   <!doctype html>
   <html lang="en">
   <head>
       <meta charset="UTF-8">
       <title>Document</title>
   </head>
       <script></script>







    $(document).ready(function() {
    jquery.preloadimages = function()
    {
    for(var i = 0; i").attr("src", arguments[i]);
    }
    };
    // how to use
    $.preloadimages("image1.jpg");
    });

jquery延时加载功能

 

    $(document).ready(function() {
    window.settimeout(function() {
    // do something
    }, 1000);
    }); 


看一下js方法

    <script>
    var i;
    function preloader() {
     i=new image();
     //i.src="/www.111cn.net/111/1.jpg";
     i.src="/_wallpaper_ea52019.jpg";
     checkimages();
    }

     function checkimages() {
      var result = false;
      result = i.complete;
      if (result) {
         alert("complete");
      } else {
         window.settimeout("checkimages()",1000);
      }
     }

    </script>

    <body onload="网页特效:preloader()">
    <img src="" onmouseo教程ver="javascript:this.src=i.src;">
    </body>

看一个进入该页面后强制刷新一次。

     if(checkcookie())//检查cookie是否可用
        {   
            if(getcookie("loadnum")!="one")//获取cookie名为loadnum的值
            {
               addcookie("loadnum","one",0);//添加cookie
               this.location.reload();//刷新
            }       
        }
    ///////////////////////////////////////////////
    function restorecookie()
    {
        if(getcookie("loadnum")=="one")
            deletecookie("loadnum");//删除cookie
    }
    window.setinterval("restorecookie()",200);

   </html>